<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script>
        class person{
            name;
            age;
            get name(){
                return this.name
            }
            set name(name){
                console.log("setter");
                this.name=name

            }
        }
         
        let person=new person()
        //person.name="zhangsan"
        

        console.log(person);
    </script>
</head>
<body>
    
</body>
</html>